<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Logical Spaces</title>
        <link rel="shortcut icon" href="Data\\images\\Saved-Data-Utility.ico" type="image/x-icon"/>
    </h:head>
    <h:body>
        <p:growl id="msgCTSPP" showDetail="true" life="10000"/>
        <p:panel>
            <h:form>
                <h:panelGrid style="margin: 0 auto">
                    <p:outputLabel value="CREAR TABLESPACE UNDO" style="color: #2480BC;"/>
                </h:panelGrid>
                
                <p:separator/>

                <h:panelGrid columns="2" cellpadding="10" id="uno">

                    <p:outputLabel value="Nombre: "/>
                    <p:inputText value="#{createTableSpaceBeanUndo.tableSpaceName}"/>

                </h:panelGrid>

                <h:panelGrid columns="3" cellpadding="10" id="dos">

                    <p:outputLabel value="Tamaño: "/>
                    <p:inputText value="#{createTableSpaceBeanUndo.tableSpaceSize}"/>
                    <p:selectOneRadio id="sizeOptions" value="#{createTableSpaceBeanUndo.tableSizeOption}" columns="3">  
                        <f:selectItem itemLabel="&nbsp;K&nbsp;&nbsp;&nbsp;" itemValue="K" />  
                        <f:selectItem itemLabel="&nbsp;M&nbsp;&nbsp;&nbsp;" itemValue="M" />
                        <f:selectItem itemLabel="&nbsp;G&nbsp;&nbsp;&nbsp;" itemValue="G" />
                    </p:selectOneRadio> 

                </h:panelGrid>

                <p:separator/>

                <h:panelGrid columns="2" cellpadding="10" id="tres">

                    <p:outputLabel value="Nombre DataFile: "/>
                    <p:inputText value="#{createTableSpaceBeanUndo.tableFileName}"/>

                </h:panelGrid>
                
                <h:panelGrid columns="1" cellpadding="10" id="cuatro">

                    <p:selectOneRadio id="radio1" value="#{createTableSpaceBeanUndo.radioFileSizeValue}" columns="2">
                        <f:selectItem itemLabel="&nbsp;Archivo Pequeño&nbsp;&nbsp;&nbsp;" itemValue="radio1opt1"/>
                        <f:selectItem itemLabel="&nbsp;Archivo Grande&nbsp;&nbsp;&nbsp;" itemValue="radio1opt2"/>
                    </p:selectOneRadio>

                    <p:selectOneRadio id="radio2" value="#{createTableSpaceBeanUndo.radioTableStateValue}" columns="2" >
                        <f:selectItem itemLabel="&nbsp;En Línea&nbsp;&nbsp;&nbsp;" itemValue="radio2opt1" />
                        <f:selectItem itemLabel="&nbsp;Fuera de Línea&nbsp;&nbsp;&nbsp;" itemValue="radio2opt2" />
                    </p:selectOneRadio>

                </h:panelGrid>

                <p:separator/>
                
                <br/>

                <p:selectOneRadio id="radio3" value="#{createTableSpaceBeanUndo.radioUniformSizeValue}" layout="custom">
                    <f:selectItem itemValue="radio3opt2" />
                </p:selectOneRadio>

                <h:panelGrid columns="4">

                   <p:radioButton id="radio3opt2" for="radio3" itemIndex="0"/>
                    <h:outputText value="&nbsp;AUTOALLOCATE"/>

                </h:panelGrid>
                
                <br/>
               
                <p:separator/>

                <p:selectOneRadio id="radio4" value="#{createTableSpaceBeanUndo.radioAutoExtendValue}" layout="custom">
                    <f:selectItem itemValue="radio4opt1" />
                    <f:selectItem itemValue="radio4opt2" />
                </p:selectOneRadio>

                <h:panelGrid columns="5">

                    <p:radioButton id="radio4opt1" for="radio4" itemIndex="0"/>
                    <h:outputText value="&nbsp;AUTOEXTEND &nbsp;Incremento: &nbsp;&nbsp;"/>
                    <p:inputText  value="#{createTableSpaceBeanUndo.autoExtendSpinnerIncrementoValue}"/>
                    <h:outputText value="&nbsp;&nbsp;Tamaño Max: &nbsp;&nbsp;"/>
                    <p:inputText value="#{createTableSpaceBeanUndo.autoExtendSpinnerMaxSizeValue}"/>
                    <h:outputText value="&nbsp;"/>
                    <h:outputText value="&nbsp;"/>
                    <p:selectOneRadio id="incrementoSizeOptions" value="#{createTableSpaceBeanUndo.incrementoSizeOptions}" columns="3">  
                        <f:selectItem itemLabel="&nbsp;K&nbsp;&nbsp;&nbsp;" itemValue="K" />  
                        <f:selectItem itemLabel="&nbsp;M&nbsp;&nbsp;&nbsp;" itemValue="M" />
                        <f:selectItem itemLabel="&nbsp;G&nbsp;&nbsp;&nbsp;" itemValue="G" />
                    </p:selectOneRadio> 
                    <h:outputText value="&nbsp;"/>
                    <p:selectOneRadio id="maxSizeOptions" value="#{createTableSpaceBeanUndo.maxSizeOptions}" columns="3">  
                        <f:selectItem itemLabel="&nbsp;K&nbsp;&nbsp;&nbsp;" itemValue="K" />  
                        <f:selectItem itemLabel="&nbsp;M&nbsp;&nbsp;&nbsp;" itemValue="M" />
                        <f:selectItem itemLabel="&nbsp;G&nbsp;&nbsp;&nbsp;" itemValue="G" />
                    </p:selectOneRadio> 


                    <p:radioButton id="radio4opt2" for="radio4" itemIndex="1"/>
                    <h:outputText value="&nbsp;AUTOEXTEND OFF"/>

                </h:panelGrid>

                <br/>

                <p:growl id="growl" showDetail="true" sticky="true" /> 

                <p:commandButton value="Crear"  actionListener="#{createTableSpaceBeanUndo.createTableSpace()}" update="growl"/>

            </h:form>
                
        </p:panel>
    </h:body>
</html>